/* =============================================
   LA MESA GOURMET — CSS
   Tipografía: Cormorant Garamond + Montserrat
   Paleta: Crema / Negro / Dorado
============================================= */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --negro:        #0e0e0e;
  --blanco:       #faf8f4;
  --crema:        #f2ece0;
  --dorado:       #a8834a;
  --dorado-claro: #c9a96e;
  --gris:         #888;
  --borde:        #e0d8cc;
  --serif:        'Cormorant Garamond', Georgia, serif;
  --sans:         'Montserrat', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--blanco);
  color: var(--negro);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }

.container { width: 90%; max-width: 1200px; margin: auto; }

/* =============================================
   TIPOGRAFÍA COMÚN
============================================= */
.section-label {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 300;
  line-height: 1.15;
  color: var(--negro);
}
.section-title em { font-style: italic; color: var(--dorado); }
.section-desc { font-size: 15px; color: var(--gris); max-width: 520px; margin-top: 12px; line-height: 1.7; }
.section-rule { width: 50px; height: 1px; background: var(--dorado); margin: 24px 0; }
.section-header.centered { text-align: center; margin-bottom: 50px; }
.section-header.centered .section-desc { margin: 12px auto 0; }

/* =============================================
   HEADER
============================================= */
.header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(to bottom, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.28) 70%, transparent 100%);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.header.scrolled {
  background: rgba(8,8,8,0.97);
  box-shadow: 0 1px 20px rgba(0,0,0,0.35);
}
@supports (backdrop-filter: blur(1px)) {
  .header.scrolled {
    background: rgba(8,8,8,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 5%;
  transition: padding 0.4s ease;
}
.header.scrolled .header-inner { padding: 16px 5%; }

.header-logo { display: flex; flex-direction: column; line-height: 1; }
.logo-small { font-family: var(--sans); font-size: 10px; letter-spacing: 4px; text-transform: uppercase; color: var(--dorado); }
.logo-main { font-family: var(--serif); font-size: 22px; font-weight: 300; color: #fff; letter-spacing: 1px; }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.25s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: var(--dorado);
  transition: width 0.3s;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  border: 1px solid var(--dorado) !important;
  padding: 8px 18px;
  color: var(--dorado) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--dorado) !important; color: #fff !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 10;
}
.hamburger span { display: block; width: 24px; height: 1.5px; background: #fff; transition: border-color 0.3s, color 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(10,10,10,0.98);
  padding: 16px 5% 24px;
  border-top: 1px solid rgba(168,131,74,0.25);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.2s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--dorado); }

/* =============================================
   HERO
============================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: heroZoom 12s ease-in-out infinite alternate;
  will-change: transform;
  transform-origin: center;
}
@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.65) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
  animation: fadeUp 1.2s ease both;
}
.hero-eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--dorado-claro);
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(38px, 8vw, 82px);
  font-weight: 300;
  line-height: 1.1;
}
.hero-title em { font-style: italic; color: var(--dorado-claro); }
.hero-divider { width: 1px; height: 36px; background: var(--dorado); margin: 24px auto; opacity: 0.7; }
.hero-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  max-width: 480px;
  margin: 0 auto 30px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  display: inline-block;
  padding: 13px 32px;
  background: var(--dorado);
  color: #fff;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s;
}
.btn-primary:hover { background: var(--dorado-claro); }

.btn-ghost {
  display: inline-block;
  padding: 13px 32px;
  border: 1px solid rgba(255,255,255,0.5);
  color: rgba(255,255,255,0.9);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.25s, background 0.25s, border-color 0.25s, opacity 0.25s;
}
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.08); }

.hero-scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
}
.hero-scroll-hint span {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--dorado), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

/* =============================================
   NOSOTROS
============================================= */
.nosotros {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}
.nosotros-img-col { position: relative; overflow: hidden; }
.nosotros-img-col img { height: 100%; min-height: 460px; transition: transform 0.8s ease; }
.nosotros-img-col:hover img { transform: scale(1.04); }

.nosotros-img-badge {
  position: absolute;
  bottom: 36px; right: 24px;
  background: var(--dorado);
  color: #fff;
  width: 96px; height: 96px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.badge-num { font-family: var(--serif); font-size: 30px; font-weight: 300; line-height: 1; }
.badge-txt { font-family: var(--sans); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; line-height: 1.3; }

.nosotros-texto {
  background: var(--blanco);
  padding: 70px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.nosotros-texto p { font-size: 15px; color: #555; line-height: 1.8; margin-bottom: 14px; }

.nosotros-stats {
  display: flex;
  gap: 30px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--borde);
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--serif); font-size: 34px; font-weight: 300; color: var(--dorado); line-height: 1; }
.stat-label { font-family: var(--sans); font-size: 10px; letter-spacing: 1px; color: var(--gris); margin-top: 4px; }

/* =============================================
   MENÚ
============================================= */
.menu-section {
  padding: 80px 0;
  background: var(--crema);
  position: relative;
  overflow: hidden;
}
.menu-bg-text {
  position: absolute;
  top: -20px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: 200px;
  font-weight: 300;
  color: rgba(0,0,0,0.04);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}
.menu-filtros {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.filtro {
  padding: 9px 18px;
  border: 1px solid var(--borde);
  background: transparent;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  color: #666;
  transition: color 0.25s, background 0.25s, border-color 0.25s, opacity 0.25s;
}
.filtro:hover { border-color: var(--dorado); color: var(--dorado); }
.filtro.active { background: var(--negro); color: #fff; border-color: var(--negro); }

.menu-contador {
  text-align: center;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--gris);
  margin-bottom: 40px;
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  contain: layout style;
}
.platillo {
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  contain: content;
}
.platillo:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.11); }

.platillo-img-wrap { position: relative; overflow: hidden; height: 200px; }
.platillo-img-wrap img { height: 200px; transition: transform 0.6s ease; }
.platillo:hover .platillo-img-wrap img { transform: scale(1.07); }

.platillo-badge {
  position: absolute;
  top: 12px; left: 0;
  background: var(--dorado);
  color: #fff;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
}
.platillo-tag {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
}
.platillo-info { padding: 20px; }
.platillo-info h4 { font-family: var(--serif); font-size: 21px; font-weight: 400; margin-bottom: 5px; color: var(--negro); line-height: 1.2; }
.platillo-info p { font-size: 13px; color: var(--gris); line-height: 1.6; margin-bottom: 14px; }
.platillo-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--borde); }
.precio { font-family: var(--serif); font-size: 22px; font-weight: 300; color: var(--dorado); }

.menu-mas { display: flex; justify-content: center; margin-top: 50px; }
.btn-ver-mas {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 32px;
  background: transparent;
  border: 1px solid var(--negro);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--negro);
  transition: color 0.25s, background 0.25s, border-color 0.25s, opacity 0.25s;
}
.btn-ver-mas:hover { background: var(--negro); color: #fff; }

/* =============================================
   GALERÍA
============================================= */
.galeria-section { padding: 80px 0 0; background: var(--blanco); }
.galeria-header { margin-bottom: 50px; }

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 260px 260px;
  gap: 5px;
}
.foto { position: relative; overflow: hidden; }
.foto-grande { grid-column: span 2; grid-row: span 2; }
.foto img { transition: transform 0.6s ease; }
.foto:hover img { transform: scale(1.07); }
.foto-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 18px;
  opacity: 0;
  transition: opacity 0.4s;
}
.foto:hover .foto-overlay { opacity: 1; }
.foto-overlay span { font-family: var(--sans); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #fff; }

/* =============================================
   RESERVAS
============================================= */
.reservas-section {
  padding: 80px 0;
  background: var(--negro);
  position: relative;
  overflow: hidden;
}
.reservas-deco {
  position: absolute;
  bottom: -60px; right: -30px;
  font-family: var(--serif);
  font-size: 180px;
  font-weight: 300;
  color: rgba(255,255,255,0.03);
  user-select: none;
  pointer-events: none;
}
.reservas-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 70px;
  align-items: start;
}
.reservas-info .section-label { color: var(--dorado-claro); }
.reservas-info .section-title { color: #fff; }
.reservas-info .section-rule { background: var(--dorado); }

.horarios { margin-bottom: 32px; }
.horario-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.horario-dia { font-family: var(--sans); font-size: 12px; letter-spacing: 1px; color: rgba(255,255,255,0.55); }
.horario-hora { font-family: var(--serif); font-size: 18px; color: var(--dorado-claro); }

.contacto-detalle { display: flex; flex-direction: column; gap: 9px; }
.contacto-detalle p { font-size: 14px; color: rgba(255,255,255,0.45); }

.reservas-form-wrap { background: var(--blanco); padding: 44px; }
.form-reserva { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.campo { display: flex; flex-direction: column; gap: 7px; }

.form-reserva label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #888;
}
.form-reserva input,
.form-reserva select,
.form-reserva textarea {
  padding: 12px 14px;
  border: 1px solid var(--borde);
  background: #fafafa;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--negro);
  outline: none;
  transition: border-color 0.25s, background 0.25s;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}
.form-reserva input:focus,
.form-reserva select:focus,
.form-reserva textarea:focus { border-color: var(--dorado); background: #fff; }
.form-reserva textarea { min-height: 100px; resize: vertical; }

.btn-reservar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 28px;
  background: var(--negro);
  color: #fff;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.25s;
  width: 100%;
}
.btn-reservar:hover { background: var(--dorado); }

/* =============================================
   FOOTER
============================================= */
.footer { background: #050505; color: rgba(255,255,255,0.5); }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 50px;
  padding: 60px 5%;
  max-width: 1200px;
  margin: auto;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand .footer-logo { display: flex; flex-direction: column; line-height: 1; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-links, .footer-contact { display: flex; flex-direction: column; }
.footer-links h4, .footer-contact h4 {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 20px;
}
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.45); text-decoration: none; padding: 4px 0; transition: color 0.2s; }
.footer-links a:hover { color: var(--dorado); }
.footer-contact p { font-size: 14px; margin-bottom: 7px; line-height: 1.6; }
.footer-redes { display: flex; gap: 10px; margin-top: 18px; }
.footer-redes a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.45);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.25s, background 0.25s, border-color 0.25s, opacity 0.25s;
}
.footer-redes a:hover { border-color: var(--dorado); color: var(--dorado); }
.footer-bottom { text-align: center; padding: 20px; }
.footer-bottom p { font-size: 12px; letter-spacing: 1px; }

/* =============================================
   ANIMACIONES
============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   RESPONSIVE — TABLET (max 1024px)
============================================= */
@media (max-width: 1024px) {
  .nosotros { grid-template-columns: 1fr; }
  .nosotros-img-col img { min-height: 360px; height: 360px; }
  .nosotros-img-badge { right: 20px; bottom: 24px; }
  .nosotros-texto { padding: 50px 5%; }

  .reservas-inner { grid-template-columns: 1fr; gap: 40px; }

  .galeria-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 220px 220px;
  }
  .foto-grande { grid-column: span 2; grid-row: span 1; }

  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

/* =============================================
   RESPONSIVE — MÓVIL (max 768px)
============================================= */
@media (max-width: 768px) {
  /* Nav */
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero { min-height: 100svh; }
  .hero-title { font-size: clamp(34px, 10vw, 52px); }
  .hero-desc { font-size: 14px; }
  .btn-primary, .btn-ghost { padding: 12px 24px; font-size: 10px; }

  /* Nosotros */
  .nosotros { grid-template-columns: 1fr; }
  .nosotros-img-col img { min-height: 280px; height: 280px; }
  .nosotros-texto { padding: 40px 5%; }
  .nosotros-stats { flex-direction: row; flex-wrap: wrap; gap: 20px; }
  .stat { min-width: 80px; }
  .stat-num { font-size: 28px; }

  /* Menú */
  .menu-section { padding: 60px 0; }
  .menu-bg-text { display: none; }
  .menu-filtros { gap: 6px; }
  .filtro { padding: 8px 14px; font-size: 10px; letter-spacing: 1px; }
  .menu-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .platillo-img-wrap { height: 160px; }
  .platillo-img-wrap img { height: 160px; }
  .platillo-info { padding: 14px; }
  .platillo-info h4 { font-size: 17px; }
  .platillo-info p { font-size: 12px; margin-bottom: 10px; }
  .precio { font-size: 19px; }

  /* Galería */
  .galeria-section { padding: 60px 0 0; }
  .galeria-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 160px 160px 160px;
    gap: 4px;
  }
  .foto-grande { grid-column: span 2; grid-row: span 1; height: 220px; }
  .foto-grande img { height: 220px; }

  /* Reservas */
  .reservas-section { padding: 60px 0; }
  .reservas-deco { display: none; }
  .reservas-inner { grid-template-columns: 1fr; gap: 36px; }
  .reservas-form-wrap { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 14px; }
  .horario-item { flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 0; }
  .horario-hora { font-size: 16px; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 36px; padding: 44px 5%; }
  .footer-brand { grid-column: auto; }
  .footer-brand p { max-width: 100%; }
}

/* =============================================
   RESPONSIVE — MÓVIL PEQUEÑO (max 480px)
============================================= */
@media (max-width: 480px) {
  .hero-eyebrow { font-size: 9px; letter-spacing: 3px; }
  .hero-title { font-size: clamp(30px, 11vw, 44px); }
  .hero-scroll-hint { display: none; }

  .menu-grid { grid-template-columns: 1fr; gap: 16px; }
  .platillo-img-wrap { height: 200px; }
  .platillo-img-wrap img { height: 200px; }

  .galeria-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 4px;
  }
  .foto-grande { grid-column: auto; grid-row: auto; height: 240px; }
  .foto-grande img { height: 240px; }
  .foto { height: 200px; }
  .foto img { height: 200px; }

  .section-title { font-size: clamp(28px, 9vw, 40px); }

  .nosotros-stats { flex-direction: column; gap: 16px; }

  .btn-ver-mas { padding: 12px 24px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; transform: scale(1.08); }
  .scroll-line { animation: none; opacity: 0.6; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}